From 283fec5d9ac814b489580c1c8d1069447454fe63 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 4 May 2010 12:39:29 +0100 Subject: [PATCH] x86: fix off-by-one error in the cache flush portion of flush_area_local(). Signed-off-by: Jan Beulich --- xen/arch/x86/flushtlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/flushtlb.c b/xen/arch/x86/flushtlb.c index 5a012d4a0d..e0388e7cd9 100644 --- a/xen/arch/x86/flushtlb.c +++ b/xen/arch/x86/flushtlb.c @@ -149,7 +149,7 @@ void flush_area_local(const void *va, unsigned int flags) { unsigned long i, sz = 0; - if ( order < (BITS_PER_LONG - PAGE_SHIFT - 1) ) + if ( order < (BITS_PER_LONG - PAGE_SHIFT) ) sz = 1UL << (order + PAGE_SHIFT); if ( c->x86_clflush_size && c->x86_cache_size && sz && -- 2.30.2